package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.common.model.BaseQuery;
import com.demo.config.annotation.DataScope;
import com.demo.entity.User;
import com.demo.vo.UserDetailVo;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    UserDetailVo queryUserDetailInfoByUserId(Integer loginUserId);

    /**
     * 查询所有用户列表
     * @return
     */
    @DataScope(tableAlias = "tu",tableField = "id")
    List<User> selectUserList(BaseQuery baseQuery);
}
